package com.example.api.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OperateLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 操作日志id
     */
    private Integer id;

    /**
     * 操作类型
     */
    private String type;

    /**
     * 状态信息
     */
    private String code;

    /**
     * 操作内容
     */
    private String content;

    /**
     * 操作用户id
     */
    private Integer aid;

    /**
     * 操作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

}